﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using System.Threading;
using Itasa.RSS;

namespace Itasa
{
    /// <summary>
    /// Logica di interazione per Item_Label.xaml
    /// </summary>
    public partial class RSS_Sub_Label : UserControl
    {

        internal RSS_Sub i;

        internal RSS_Sub_Label(RSS_Sub i)
        {
            InitializeComponent();
            this.i = i;
        }

        public void changeTooltip(String s)
        {
            if (this.label.Dispatcher.CheckAccess())
            {
                this.label.ToolTip = s;
            }
            else
            {
                this.label.Dispatcher.Invoke(System.Windows.Threading.DispatcherPriority.Normal, (ThreadStart) delegate()
                {
                    this.label.ToolTip = s;
                });
            }
        }

    }
}
